package com.tpp.controller;

import com.tpp.pojo.baseVo.BaseResult;
import com.tpp.service.TppMovieService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

;

@RequestMapping("/tppMovie")
@RestController
public class TppMovieController {
    @Resource
    TppMovieService tppMovieService;

    @GetMapping("/findByMovieWei")
    public BaseResult findByMovieWei() {
        return tppMovieService.findByMovieWei();
    }

    @GetMapping("findByMovieHeat")
    public BaseResult findByMovieHeat() {
        return tppMovieService.findByMovieHeat();
    }

    @GetMapping("/findMovieScore")
    public BaseResult findMovieScore() {
        return tppMovieService.findMovieScore();
    }

    @GetMapping("/findByMovieOne")
    public BaseResult findByMovieOne(Integer movieId) {
        return tppMovieService.findByMovieOne(movieId);
    }
}